#ifndef _DIRECTORY_DB_H
#define _DIRECTORY_DB_H
#include "fclude.h"
#include "BDB.h"
#include "MHD_utils.h"
#include <jansson.h>

/*********************************************************************/
typedef struct dbstr_s {
	u_char		len;
	char		str[1];
} dbstr_t, *dbstr_p;

typedef struct {
//  int32_t num;
 // int32_t date1, date2;
  int num ;
  char * password;
  char * group;
  char * domain;
  char * context;
  char * owner;
} directory_t,*directory_p;


int directory_create(struct MHD_Connection *connection,app_con_info_p sysdata, int uri_num);
//int directory_create( DIRECTORY my_directory );
        ;
int db_name_extentionid (DB *secdb, const DBT *pkey, const DBT *pdata, DBT *skey);



int directory_get(struct MHD_Connection *connection,app_con_info_p sysdata, int uri_num);

int directory_list(struct MHD_Connection *connection,app_con_info_p sysdata, int uri_num);
#endif

